﻿// ----------------------------------------------------------------------------
// Module:   Pfizer.China.Pass.Framework.Web
// Version:  1.0
// Author:   LiXing
// Purpose:  This class services as the constants data manager
//            
// Modification History :
// Version          Author            Date                 Description
// 1.0              LiXing            15-Aug-2008          Initial Version
// ----------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Text;

namespace SystemFrameWork
{
    /// <summary>
    /// This class services as the constants data manager
    /// </summary>
    public class ConstantsManager
    {
        #region User Session key

        /// <summary>
        /// the current culture
        /// </summary>
        public static readonly string CurrentCulture = "current_culture";

        /// <summary>
        /// the current culture
        /// </summary>
        public static readonly string Sys_userkey = "Sys_userkey";

        /// <summary>
        /// login verification code
        /// </summary>
        public static readonly string VerificationCode = "Verification_code";


        /// <summary>
        /// the current culture
        /// </summary>
        public static readonly string Username = "Username";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string CurrentPfizerUser = "CurrentPfizerUser";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string PageSize = "PageSize";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string ConnetionTimeOut = "ConnetionTimeOut";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string CurrentRole = "CurrentRole";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string EnableDataPermission = "EnableDataPermission";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string MyRightEmployeeList = "myRightEmployeeList";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string MyRightEmployeeListForAddPfizerTestee = "MyRightEmployeeListForAddPfizerTestee";

        public static readonly string MyExamPaperDataRoleForAddTemplate = "MyExamPaperDataRoleForAddTemplate";

        public static readonly string ErrorImportMessage = "ErrorImportMessage";

        public static readonly string RemovedExampaperOfDefinition = "RemovedExampaperOfDefinition";
        /// <summary>
        /// 
        /// </summary>
        public static readonly string QuestionTypeDictionary = "QuestionTypeDictionary_";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string QuestionChoiceList = "QuestionChoiceList_";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string SubQuestionChoiceList = "SubQuestionChoiceList";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string SubQuestionViewList = "SubQuestionViewList";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string CurrentRightExamPaperList = "CurrentRightExamPaperList";

        /// <summary>
        /// 
        /// </summary>
        public static readonly string CurrentRightQuestionList = "CurrentRightQuestionList";

        /// <summary>
        /// 
        /// </summary>
        public static readonly DateTime SqlDateTimeMin = DateTime.Parse("1/1/1753 12:00:00 AM");

        /// <summary>
        /// 
        /// </summary>
        public static readonly DateTime SqlDateTimeMax = DateTime.Parse("12/31/9999 11:59:59 PM");

        #endregion


        #region Dictionary

        /// <summary>
        /// security project check up status
        /// </summary>
        private static Dictionary<string, string> securityProjectCheckUpStatus = new Dictionary<string, string>();
        public static Dictionary<string, string> SecurityProjectCheckUpStatus
        {
            get
            {
                if (ConstantsManager.securityProjectCheckUpStatus.Count == ConstantsManager.Zero)
                {
                    ConstantsManager.securityProjectCheckUpStatus.Add("0", "未选择");
                    ConstantsManager.securityProjectCheckUpStatus.Add("1", "合格");
                    ConstantsManager.securityProjectCheckUpStatus.Add("2", "不合格");
                }
                return ConstantsManager.securityProjectCheckUpStatus;
            }
        }

        /// <summary>
        /// security project reform status
        /// </summary>
        private static Dictionary<string, string> securityProjectReoformStatus = new Dictionary<string, string>();
        public static Dictionary<string, string> SecurityProjectReoformStatus
        {
            get
            {
                if (ConstantsManager.securityProjectReoformStatus.Count == ConstantsManager.Zero)
                {
                    ConstantsManager.securityProjectReoformStatus.Add("0", "未选择");
                    ConstantsManager.securityProjectReoformStatus.Add("1", "未整改");
                    ConstantsManager.securityProjectReoformStatus.Add("2", "整改中");
                    ConstantsManager.securityProjectReoformStatus.Add("3", "整改完成");
                }
                return ConstantsManager.securityProjectReoformStatus;
            }
        }

        #endregion

        public static readonly string QuestionLibraryGuid = "00000000-0000-0000-0000-000000000000";
        public static readonly string All = "All";
        //FirstPage
        public static readonly int FirstPage = 1;
        //ZERO One
        public static readonly int Zero = 0;
        public static readonly int One = 1;
        public static readonly int OneThousand = 1000;
        // RecordStatus
        public static readonly int RecordStatus_Active = 0;
        public static readonly int RecordStatus_Inactive = 1;
        public static readonly int RecordStatus_Deleted = 2;
        // Configuration Keys
        public static readonly string DefaultLoggerConfigurationKey = "DefaultLogger";
        public static readonly string SqlConnectionString = "WorkTimeSheetDBConnection";
        public static readonly string FileFormat = "FileFormat";
        public static readonly string PassGraphicFormat = "PassGraphicFormat";
        public static readonly string FolderSizeLimit = "FolderSizeLimit";
        public static readonly string MediumFilePath = "MediumFilePath";
        public static readonly string PlayerButtonIconPath = "PlayerButtonIconPath";
        public static readonly string FileUplodePath = "FileUplodePath";
        public static readonly string MediumFilePathReading = "MediumFilePathReading";
        public static readonly string TempFileUrl = "TempFileUrl";
        public static readonly string EmailFilePath = "EmailFilePath";
        public static readonly string CandidateNoticeEmail = "CandidateNoticeEmail";
        public static readonly string ResultNoticeEmail = "ResultNoticeEmail";
        public static readonly string EmployeeNoticeEmail = "EmployeeNoticeEmail";
        public static readonly string EmployeeNoticeEmailToParentPosition = "EmployeeNoticeEmailToParentPosition";
        public static readonly string EmailFromAddress = "EmailFromAddress";
        public static readonly string EmailFromName = "EmailFromName";
        public static readonly string IsMockup = "IsMockup";
        public static readonly string Question = "Question";
        public static readonly string DataViewEmployee = "DataViewEmployee";
        public static readonly string Name = "Name";
        public static readonly string ID = "ID";
        //Pfizer IP
        public static readonly string PfizeLocalIP = "10";
        public static readonly string PfizeLocalDelegateIP = "127";
        public static readonly string LoginSuccess = "OK_SUCCESS";

        public static readonly int IDCardLength = 15;
        public static readonly int IDCardBirthday = 6;
        public static readonly int BirthdayLeng = 8;
        public static readonly int DateLength = 10;

        public static readonly string SaveError = "SaveError";

        public static readonly string Desc = "DESC";
        public static readonly string Asc = "ASC";

        //Added by Jack 2009-12-28
        public static readonly string SmallTime = "1900-1-1";
        public static readonly string LargeTime = "2099-1-1";
        public static readonly string Locked = "Locked";
        public static readonly string UnLocked = "UnLocked";

        //Add ganxiaotu
        public static readonly string YesKey = "Yes";
        public static readonly string NoKey = "No";
        public static readonly string DelKey = "del";
        public static readonly string chkSingleKey = "chkSingle";
        public static readonly string chkSelectAll = "chkSelectAll";
        public static readonly int PasswordLength = 6;
        public static readonly string NTID = "NTID";
        public static readonly string ExamName = "ExamName";
        public static readonly string StartTime = "StartTime";
        public static readonly string SalesExamResultFilePath = "SalesExamResultFilePath";
        public static readonly string HRExamResultFilePath = "HRExamResultFilePath";


        //Add Nina 2009-12-26 
        public static readonly string DataRoleSuperAdmin = "SupperAdmin";
        public static readonly string UserGroupTransferId = "grid";
        public static readonly string UserGroupTransferAdd = "add";

        //Added by Li Xing 2009-12-28
        //command name

        public static readonly string Delete = "Delete";
        public static readonly string Update = "UpdateMe";
        public static readonly string Edit = "Edit";

        //Added by Li Xing 2009-12-30

        public static readonly string NormalQuestion = "0";
        public static readonly string SingleChoice = "1";
        public static readonly string MultipleChoice = "2";
        public static readonly string OpenEnded = "3";
        public static readonly string Combo = "4";

        //Added by li xing 2010-1-5
        public static readonly string ExamIcon = "1";
        public static readonly string QuestionPic = "2";
        public static readonly string PreviewFile = "3";
        public static readonly string MediaPrefix = "media";

        //exam page, Added by Li Xing
        public static readonly string ExamCollectionCookieNameQ = "ExamCollectionCookieNameQ";
        public static readonly string ExamCollectionCookieNameC = "ExamCollectionCookieNameC";
        public static readonly string ExamQuestionCollection = "ExamQuestionCollection";
        public static readonly string ExamQuestionChoiceCollection = "ExamQuestionChoiceCollection";
        public static readonly string CurrentCultureLanguage = "CurrentCultureLanguage";
        public static readonly string PrefixOfQuestionDiv = "PrefixOfQuestionDiv";
        public static readonly string BlankSpace = "&nbsp;";
        public static readonly string UnSightUrl = "UnSightUrl";

        //Exam lobby
        public static readonly string AdminPermission = "AdminPermission";

        //Boolean string
        public static readonly string False = "false";
        public static readonly string True = "true";
    }
}
